// @ts-ignore
/* eslint-disable */

import { posterRequest } from '@/utils/HttpRequest';

export async function findByPageList(params?: any) {
  //SwaggerResources

  return posterRequest.getList<any>('findByPageList', params);
}

export async function findByDataList(params?: any) {
  return posterRequest.get<any[]>('findByDataList', params);
}

export function posterRegesterQrcode(userId: number) {
  //SwaggerResources

  return posterRequest.get<API.BaseDataResult<any>>('regesterQrcode');
}

export async function edit(params: API.Goods) {
  return posterRequest.post<API.BaseResult>('edit', params);
}
export async function editKeys(params: API.Goods) {
  return posterRequest.post<any>('editKeys', params);
}

//posterEdit
export async function posterEdit(params: any) {
  return posterRequest.post<any>('posterEdit', params);
}
export async function posterByDeleteImage(id: any) {
  return posterRequest.get<API.BaseResult>('byDeleteImage');
}

export async function findByDataImageList(id?: number) {
  //SwaggerResources
console.log("findByDataImageList:",id)
  return posterRequest.get< Record<string, any>[]>(
    'findByDataImageList',
    {
      id: id,
    }
  );
}
